from django.conf.urls import url,include
from app01 import views
from web.views import account,home  # 把 原来的views.py里面的函数现在写到了一个文件夹里面，所以直接导入即可

urlpatterns = [
    # 注册
    url(r'^register/$', account.register, name='register'),
    # 发送短信
    url(r'^send_sms/$', account.send_sms, name='send_sms'),
    # 短信登录
    url(r'^login/sms/$', account.login_sms, name='login_sms'),
    # 用户名密码验证码登录
    url(r'^login/$', account.login, name='login'),
    # 生成图片验证码
    url(r'^image/code/$', account.image_code, name='image_code'),

    # index页面
    url(r'^index/$', home.index, name='index'),
    # 退出登录
    url(r'^logout/$', home.logout, name='logout'),

]